package org.hako.recite.word.util;

import java.io.Closeable;
import java.io.IOException;

/**
 * IO utilities.
 * 
 * @since 0.4.4
 * @author <a href="mailto:xnnyygn@gmail.com">xnnyygn</a>
 */
public class IOUtils {

	/**
	 * Close resource quietly.
	 * 
	 * @param closeable
	 */
	public static void closeQuietly(Closeable closeable) {
		if (closeable == null) {
			return;
		}
		try {
			closeable.close();
		} catch (IOException e) {
			
			// omit exception
		}
	}
}
